	// rem布局尺寸大小换算
	// 自执行函数，内部变量和方法外部不可见 不会污染全局环境
	(function(){
	function resize() {
		const designWidth = 750;
		const windowWidth = window.innerWidth;
		const html = document.documentElement;
		html.style.fontSize = (100 / designWidth * windowWidth) + 'px';
	}
	resize();
	window.addEventListener('onorientationchange' in window ? 'orientationchange' : 'resize', resize);
	window.addEventListener('DOMContentLoaded', resize);
})(document, window);

